﻿using System.Windows;
using System.Windows.Controls;

namespace Zeus.UserControls
{
    public partial class SoundChildWindow : ChildWindow
    {
        public SoundChildWindow()
        {
            InitializeComponent();
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }

        private void button_play_Click(object sender, RoutedEventArgs e)
        {
            mediaaaa.Play();
           
        }

        private void button_stop_Click(object sender, RoutedEventArgs e)
        {
            mediaaaa.Stop();
        }

        private void button_pause_Click(object sender, RoutedEventArgs e)
        {
            mediaaaa.Pause();
        }

        private void silder_1_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
        {

            mediaaaa.Volume = (double)silder_1.Value;
        }


    }
}

